/**
 * Created by Administrator on 2016/6/23 0023.
 */
$().ready(function () {
	$('.contact a').on('tap', function () {
		location.href = "tel:22993988";
	})

	$('#helpCenter').on('tap', function () {
		location.href = MPJ.base + "/pages/other/help.jsp";
	})

	$('#footShopCart').on('tap', function () {
		getAjaxRequest({hf_s_id:"WD11",hf_srv_id:"Zv_jcus_is_login"},function(result){
			if(result.bs_is_login==BS_IS_LOGIN.Y){
				location.href = MPJ.base + "/pages/cart/list.jsp";
			}else if(result.bs_is_login==BS_IS_LOGIN.N){
				window.location.href = MPJ.base+'/pages/login.jsp';
			}
		});
	})

	$('#account').on('tap', function () {
		getAjaxRequest({hf_s_id: "WD11", hf_srv_id: "Zv_jcus_is_login"}, function (result) {
			if (result.bs_is_login == BS_IS_LOGIN.Y) {
				location.href = MPJ.base + "/pages/account/index.jsp";
			} else if (result.bs_is_login == BS_IS_LOGIN.N) {
				location.href = MPJ.base + "/pages/login.jsp";
			}
		});
	})

	$('#delivery').on('tap', function () {
		location.href = MPJ.base + "/pages/order/confirm-detail.jsp";
	})
})